<?php
/**
 *  +---------------------------------------------------------------------------+
 *  | Copyright (c) 2008-2009 CCBox.net All rights reserved. 
 *  +---------------------------------------------------------------------------+
 *  | 许可协议，请查看源代码中附带的 LICENSE.txt 文件，
 *  | 或者访问 http://www.ccbox.net/ 获得详细信息。
 *  +---------------------------------------------------------------------------+
 *  | Author: KentaTse < ccbox_net@163.com >
 *  +---------------------------------------------------------------------------+
 * 
 *  +---------------------------------------------------------------------------+
 *  | 建立时间：2008-11-8 16:23
 *  | 当前文件：标题 2
 *  | 文件说明：
 *  +---------------------------------------------------------------------------+
*/
class BlogModel extends Model{
	var $_autos = array(
		array('user_id','getUser','ALL','function'),
		array('addtime','2007-12-23','ADD')
		);

	protected $_auto = array( 
        array('status','1','ADD'), 
        array('create_time','time','ADD','function'), 
        ); 

    public function CheckVerify() { 
        return md5($_POST['verify']) == $_SESSION['verify']; 
    } 


	var $_validate = array(
		array('title','require','标题必须！'),
		array('content','require','内容必须！')
		);

	
}
 
 
?>